package com.wyb.hzmt.static_baseFrame_tools0;

import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.view.View;
import android.widget.Toast;

import com.wyb.hzmt.static_baseFrame_tools0.framework.MyBaseActivity;
import com.wyb.hzmt.static_baseFrame_tools0.tools.MyToast;


public class MainActivity extends MyBaseActivity {

    private FragmentManager manager;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        new Thread(new Runnable() {
            @Override
            public void run() {
                MyToast.toastSingleLongShow(getScreenWidth()+"——"+getScreenHeight(),true, Toast.LENGTH_SHORT);
            }
        }).start();
    }
    @Override
    public void setContentLayout() {
        setContentView(R.layout.activity_main);
    }
    @Override
    public void beforInitView() {
        manager = getSupportFragmentManager();
        manager.beginTransaction ().replace ( R.id.frag, new MainFragment() ,MainFragment.class.getName()).commit ();

    }

    @Override
    public void initView() {

    }

    @Override
    public void afterInitView() {

    }


    @Override
    public void onClickEvent(View view) {

    }
}
